NOTE: The $user_profile[18] is for the 3rd empty field. For the first field replace with $user_profile[16]. For 2nd use $user_profile[17]. 4th use $user_profile[19].
FIND: (if you want it on right side of username)
$show_public_name
ADD BELOW:
$genderhack
FIND: (if you want it in user panel)
$direct_reply
ADD BELOW:
$genderhack
Upload male.gif and female.gif to your non-cgi folder.
Go to your CP and in the Reg. options, add "Gender: If you want your gender displayed type male or female."
quote:Originally posted by Eris: Rock! Thanks a lot! Looks like I will have to go get the extra fields hack first, though, 'cause I've managed to use original four all up. =)
Make sure to edit $user_profile[18] to the correct field box.
What I want it to do is to only show up on the public_display_profile (next to $user_public_name) after being "inputted" in either in public_reg, in public_edit, or in cp_whateveritis as the gender choice.
I know I've probably got this quite wrong, but I thought I'd post it 'just in case you happened to be interested in helping me out'.
In pub_reg/pub_edit, should the option look something like the following? (I can't get the following to be noticed is the problem... maybe I've just got the select written wrong? =/ )
And in public_display, should it look something like this? (I think I may have screwed this up too. =( )
if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "male")) {
print <
}
if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "female")) {
Note: i think it would be better if you wordletize the M and F wordlets. making them $vars_wordlets_mods{'Female'} and $vars_wordlets_mods{'Male'} and adding in..:
q~Female~ => q~Female~, q~Male~ => q~Male~,
to be added in the vars_wordlets_mods
And in public_display, it should look something like this..:
if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "male")) { $sex_hack = qq~~, }
if (($vars_registration{custom7_field_use} ne 'DEL') && ($vars_registration{customfield7} ne '') && ($user_profile[62] eq "female")) { $sex_hack = qq~~, }
} # end field custom 7
and in the public_display_something.pl file you can include $sex_hack
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.